var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.setNumberForQuestInfo(64015, "chk7", 1);
            cm.npc_ChangeController(9400580, "oid=2280248", 3655, -1278, 32, 3605, 3705, 1, true, false);
            cm.npc_SetSpecialAction("oid=2280248", "summon", 0, 0);
            cm.npc_ChangeController(9400593, "oid=2280249", 3604, -1275, 30, 3554, 3654, 1, true, false);
            cm.npc_SetSpecialAction("oid=2280249", "summon", 0, 0);
            cm.npc_ChangeController(9400595, "oid=2280250", 3782, -1272, 35, 3732, 3832, 1, true, false);
            cm.npc_SetSpecialAction("oid=2280250", "summon", 0, 0);
            cm.playerMessage(-1, "救出被困在警卫岗哨顶上的人们！");
            cm.obstacleFallRepeat(5, 2001, 2002, 5);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};